import Vue from 'vue'
import VueRouter from 'vue-router'
import SplashView from "@/views/SplashView.vue";
import ReturnView from "@/views/central/state/ReturnView.vue";
import LoginView from "@/views/LoginView.vue";
import MyView from "@/views/MyView.vue";
import TicketView from "@/views/central/TicketView.vue";
import MessageView from "@/views/MessageView.vue";
import WorkOrderView from "@/views/work-order/WorkOrderView.vue";
import WorkOrderXQView from "@/views/work-order/WorkOrderXQView.vue";
import WorkOrederWBXView from "@/views/work-order/WorkOrederWBXView.vue";
import Workorderbj from "@/views/clean/Workorderbj.vue";
import Workorderbjxq from "@/views/clean/Workorderbjxq.vue";
import DetailsView from "@/views/central/DetailsView.vue";
import MedicalView from "@/views/MedicalView.vue";
import consume from "@/views/energy/Consume.vue";
import analysis from "@/views/energy/analysis.vue";
import WorkOrderHistoryView from "@/views/work-order/WorkOrderHistoryView.vue";
import TransportRequestView from "@/views/central/TransportRequestView.vue";
import ProcessView from "@/views/central/state/ProcessView.vue";
import PendingView from "@/views/central/state/PendingView.vue";
import SXTView from "@/views/work-order/SXTView.vue";
import ScanCodePageView from "@/views/work-order/ScanCodePageView.vue";
import Workorderbjxqcl from "@/views/clean/Workorderbjxqcl.vue";
import Workorderbjxqgd from "@/views/clean/Workorderbjxqgd.vue";
import Workorderbjddcl from "@/views/clean/Workorderbjddcl.vue";
import Workorderbd from "@/views/clean/Workorderbd.vue";
import InspectionRecordView from "@/views/central/InspectionRecordView.vue";
import PaymentView from "@/views/central/PaymentView.vue";
import WWorkOrderView from "@/views/work-order/wo-de/WWorkOrderView.vue";
import WWorkOrderXQView from "@/views/work-order/wo-de/WWorkOrderXQView.vue";
import WWorkOrderChuliView from "@/views/work-order/wo-de/WWorkOrderChuliView.vue";
import WWorkOrderZhuanDanView from "@/views/work-order/wo-de/WWorkOrderZhuanDanView.vue";
import WWorkOrderGuaDanView from "@/views/work-order/wo-de/WWorkOrderGuaDanView.vue";
import WWorkOrderBaoJiaView from "@/views/work-order/wo-de/WWorkOrderBaoJiaView.vue";
import XunjianView from "@/views/work-order/xun-jian/XunjianView.vue";
import XunjianXQView from "@/views/work-order/xun-jian/XunjianXQView.vue";
import WorkOrderBeiZhuView from "@/views/work-order/WorkOrderBeiZhuView.vue";
import WorkOrderBaoXiuView from "@/views/work-order/WorkOrderBaoXiuView.vue";
import Workorderbjwd from "@/views/clean/Workorderbjwd.vue";
import Workorderbjwdxq from "@/views/clean/Workorderbjwdxq.vue";
import Workorderbjjh from "@/views/clean/Workorderbjjh.vue";
import Workorderbjjhxq from "@/views/clean/Workorderbjjhxq.vue";
import Workorderbjjl from "@/views/clean/Workorderbjjl.vue";
import Workorderbjjlxq from "@/views/clean/Workorderbjjlxq.vue";
import overview from "@/views/energy/Overview.vue";
import regional from "@/views/energy/regional.vue";
import subitem from "@/views/energy/subitem.vue";
import warning from "@/views/energy/warning.vue";
import centralized from "@/views/energy/centralized.vue";
import myDetail from "@/views/myViews/myDetail.vue";
import mySetting from "@/views/myViews/mySetting.vue";
import myRepair from "@/views/myViews/myRepair.vue";
import applyForHome from "@/views/myViews/applyForHome.vue";
import homeDetails from "@/views/myViews/homeDetails.vue";
import repairDetail from "@/views/myViews/repairDetail.vue";
import workConfirmation from "@/views/myViews/workConfirmation.vue";
import facialRecognition from "@/views/myViews/facialRecognition.vue";
import messageDetail from "@/views/messgaDetail.vue"
import TiaoView from "@/views/TiaoView.vue";
import Detail1 from "@/views/safer/Detail1.vue";
import SafeView from "@/views/safer/SafeView.vue";
import Ticketwd from "@/views/central/Ticketwd.vue";
import ChatgptView from "@/views/ChatgptView.vue";
import Workorderbjzf from "@/views/clean/Workorderbjzf.vue";
import Chenggong from "@/views/clean/Chenggong.vue";
import XunluView from "@/views/work-order/XunluView.vue";
import WeatherView from "@/views/WeatherView.vue";


Vue.use(VueRouter)


const routes = [

  {
    path: '/ticketwd',
    name: 'ticketwd',
    component:Ticketwd
  },

  {
    path: '/tiao',
    name: 'tiao',
    component:TiaoView
  },
  {
    path: '/safe',
    name: 'safe',
    component:SafeView
  },
  {
    path: '/detail',
    name: 'detail',
    component:Detail1
  },
  {
    path: '/ScanCodePage',
    name: 'ScanCodePage',
    component:()=>import("../views/ScanCodePageView.vue")
  },

  {
    path: '/',
    name: 'splash',
    component: SplashView
  },
  {
    path: '/return',
    name: 'Return',
    component: ReturnView
  },
  {
    path: '/login',
    name: 'login',
    component: LoginView
  },
  {
    path: '/my',
    name: 'my',
    component: MyView
  },
  {
    path: '/ticket',
    name: 'ticket',
    component: TicketView
  },
  {
    path: '/message',
    name: 'message',
    component: MessageView
  },
  {
    path: '/workorder',
    name: 'workorder',
    component: WorkOrderView
  },
  {
    path: '/workorderxq',
    name: 'workorderxq',
    component: WorkOrderXQView
  },
  {
    path: '/workorderwbx',
    name: 'workorderwbx',
    component: WorkOrederWBXView
  },


  {
    path: '/workorderbj',
    name: 'workorderbj',
    component: Workorderbj
  },
  {
    path: '/workorderbjxq',
    name: 'workorderbjxq',
    component: Workorderbjxq
  },
  {
    path: '/workorderbjxqcl',
    name: 'workorderbjxqcl',
    component: Workorderbjxqcl
  },
  {
    path: '/workorderbd',
    name: 'workorderbd',
    component: Workorderbd
  },

  {
    path: '/workorderbjxqgd',
    name: 'workorderbjxqgd',
    component: Workorderbjxqgd
  },

  {
    path: '/workorderbjddcl',
    name: 'workorderbjddcl',
    component: Workorderbjddcl
  },
  {
    path: '/workorderbjwd',
    name: 'workorderbjwd',
    component: Workorderbjwd
  },
  {
    path: '/workorderbjwdxq',
    name: 'workorderbjwdxq',
    component: Workorderbjwdxq
  },

  {
    path: '/workorderbjjh',
    name: 'workorderbjjh',
    component: Workorderbjjh
  },

  {
    path: '/workorderbjjhxq',
    name: 'workorderbjjhxq',
    component: Workorderbjjhxq
  },


  {
    path: '/workorderbjjl',
    name: 'workorderbjjl',
    component: Workorderbjjl
  },
  {
    path: '/workorderbjjlxq',
    name: 'workorderbjjlxq',
    component: Workorderbjjlxq
  },
  {
    path: '/workorderbjzf',
    name: 'workorderbjzf',
    component: Workorderbjzf
  },
  {
    path: '/chenggong',
    name: 'chenggong',
    component: Chenggong
  },

  {
    path: '/xunlu',
    name: 'xunlu',
    component: XunluView
  },

  {
    path: '/details',
    name: 'details',
    component: DetailsView
  },
  {
    path: '/medical',
    name: 'medical',
    component: MedicalView
  },
  {
    path: '/consume',
    name: 'consume',
    component: consume
  },
  {
    path: '/analysis',
    name: 'analysis',
    component: analysis
  },
  {
    path: '/workorderhistory',
    name: 'workorderhistory',
    component: WorkOrderHistoryView
  },
  {
    path: '/transport-request',
    name: 'transport-request',
    component: TransportRequestView
  },
  {
    path: '/process',
    name: 'process',
    component: ProcessView
  },
  {
    path: '/pending',
    name: 'pending',
    component: PendingView
  },
  {
    path: '/sxt',
    name: 'SXT',
    component: SXTView
  },
    {
    path: '/ScanCodePage1',
    name: 'ScanCodePage',
    component: ScanCodePageView
  },
  {
    path: '/inspection',
    name: 'Inspection',
    component: InspectionRecordView
  },
  {
    path: '/payment',
    name: 'Payment',
    component: PaymentView
  },
  {
    path: '/wo-de',
    name: 'wo-de',
    component: WWorkOrderView
  },
  {
    path: '/wo-de/xq',
    name: 'wo-de-xq',
    component: WWorkOrderXQView
  },
  {
    path: '/wo-de/chuli',
    name: 'wworkorderchuli',
    component: WWorkOrderChuliView
  },
  {
    path: '/wo-de/zhuan',
    name: 'wworkorderzh',
    component: WWorkOrderZhuanDanView
  },
  {
    path: '/wo-de/guadan',
    name: 'wworkordergd',
    component: WWorkOrderGuaDanView
  },
  {
    path: '/wo-de/baojia',
    name: 'wworkorderbj',
    component: WWorkOrderBaoJiaView
  },
  {
    path: '/xunjian',
    name: 'xunjian',
    component: XunjianView
  },
  {
    path: '/xunjianxq',
    name: 'xunjianxq',
    component: XunjianXQView
  },
  {
    path: '/workorderbeizhu',
    name: 'workorderbeizhu',
    component: WorkOrderBeiZhuView
  },
  {
    path: '/workorderbaoxiu',
    name: 'workorderbaoxiu',
    component: WorkOrderBaoXiuView
  },
  {
    path: '/overview',
    name: 'overview',
    component: overview
  },
  {
    path: '/regional',
    name: 'regional',
    component: regional
  },
  {
    path: '/subitem',
    name: 'subitem',
    component: subitem
  },
  {
    path: '/warning',
    name: 'warning',
    component: warning
  },
  {
    path: '/centralized',
    name: 'centralized',
    component: centralized
  },
  {
    path: '/myDetail',
    name: 'myDetail',
    component: myDetail
  },
  {
    path: '/mySetting',
    name: 'mySetting',
    component: mySetting
  },
  {
    path: '/myRepair',
    name: 'myRepair',
    component: myRepair
  },
  {
    path: '/applyForHome',
    name: 'applyForHome',
    component: applyForHome
  },
  {
    path: '/homeDetails',
    name: 'homeDetails',
    component: homeDetails
  },
  {
    path: '/repairDetail',
    name: 'repairDetail',
    component: repairDetail
  },
  {
    path: '/workConfirmation',
    name: 'workConfirmation',
    component: workConfirmation
  },
  {
    path: '/facialRecognition',
    name: 'facialRecognition',
    component: facialRecognition
  },
  {
    path: '/messageDetail',
    name: 'messageDetail',
    component: messageDetail
  },
  {
    path: '/chatgpt',
    name: 'chatgpt',
    component: ChatgptView
  },
  // {
  //   path: '/map2',
  //   name:'map2',
  //   component: Map2
  // },
  {
    path: '/weather',
    name: 'weather',
    component: WeatherView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
